package com.examiner.dao;

import com.examiner.bean.test.TestType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface TestTypeDao extends JpaRepository<TestType,Integer>, JpaSpecificationExecutor<TestType> {

    List<TestType> findBySid(Integer testId);

    /*@Query(value = "delete from test_type where sid=:sid", nativeQuery = true)
    void deleteBySid(@Param("sid") Integer testId);*/

    void deleteBySid(Integer testId);
}
